<?php
/**
 * Eka Framework 0.3.0
 *
 * @copyright Copyright (c) 2008 Alexey Yu. Chuprina <656b61@gmail.com> (http://php-eka.googlecode.com)
 * @license http://www.opensource.org/licenses/mit-license.php MIT License
 *
 * @version $Id$
 */

require_once 'Eka/File.php';

/**
 * Eka_Application_Request_File
 *
 * @package Application
 * @subpackage Request
 */
class Eka_Application_Request_File extends Eka_File
{
	protected $initialName;
	
	public function __construct(array $fileData)
	{
		parent::__construct($fileData['tmp_name']);
		$this->initialName = $fileData['name'];
		$this->type = self::getFileType($this->file);
	}
	
	public function getInitialName()
	{
		return $this->initialName;
	}
}